<template>
  <slot v-if="getUserAuthBtnList" />
</template>

<script lang="ts" setup>
import { computed, PropType } from 'vue';
import { judementSameArr } from '@/utils/arrayOperation';

const props = defineProps({
	value: {
		type: Array as PropType<Array<string>>,
		default: () => [],
	},
});
const getUserAuthBtnList = computed(() => {
	return judementSameArr(props.value, ['btn.add', 'btn.edit', 'btn.del', 'btn.link']);
});
</script>
